package com.jbm.jbmsupplier.util;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by lyh on 2017-02-28.
 */
////@Entity
////@Table(name = "acc_secret", schema = "", catalog = "jbmcore")
public class AccSecretEntity extends ICtrl implements Serializable {
    private int accsId;

    ////@Id
    ////@Column(name = "accs_id")
    public int getAccsId() {
        return accsId;
    }

    public void setAccsId(int accsId) {
        this.accsId = accsId;
    }

    private int loginId;

    ////@Basic
    ////@Column(name = "login_id")
    public int getLoginId() {
        return loginId;
    }

    public void setLoginId(int loginId) {
        this.loginId = loginId;
    }

    private String fullname;

    ////@Basic
    ////@Column(name = "fullname")
    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    private String phone;

    ////@Basic
    ////@Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    private String mobile;

    ////@Basic
    ////@Column(name = "mobile")
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    private String email;

    ////@Basic
    ////@Column(name = "email")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    private String qq;

    ////@Basic
    ////@Column(name = "QQ")
    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    private String micromsg;

    ////@Basic
    ////@Column(name = "micromsg")
    public String getMicromsg() {
        return micromsg;
    }

    public void setMicromsg(String micromsg) {
        this.micromsg = micromsg;
    }

    private String idType;

    ////@Basic
    ////@Column(name = "id_type")
    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    private String idCode;

    ////@Basic
    ////@Column(name = "id_code")
    public String getIdCode() {
        return idCode;
    }

    public void setIdCode(String idCode) {
        this.idCode = idCode;
    }

    private Integer sex;

    ////@Basic
    ////@Column(name = "sex")
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    private Timestamp birthday;

    ////@Basic
    ////@Column(name = "birthday")
    public Timestamp getBirthday() {
        return birthday;
    }

    public void setBirthday(Timestamp birthday) {
        this.birthday = birthday;
    }

    private String type;

    ////@Basic
    ////@Column(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    private Timestamp createDate;

    ////@Basic
    ////@Column(name = "create_date")
    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    private int createId;

    ////@Basic
    ////@Column(name = "create_id")
    public int getCreateId() {
        return createId;
    }

    public void setCreateId(int createId) {
        this.createId = createId;
    }

    private Timestamp expireDate;

    ////@Basic
    ////@Column(name = "expire_date")
    public Timestamp getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Timestamp expireDate) {
        this.expireDate = expireDate;
    }

    private Timestamp closeDate;

    ////@Basic
    ////@Column(name = "close_date")
    public Timestamp getCloseDate() {
        return closeDate;
    }

    public void setCloseDate(Timestamp closeDate) {
        this.closeDate = closeDate;
    }

    private Integer closeId;

    ////@Basic
    ////@Column(name = "close_id")
    public Integer getCloseId() {
        return closeId;
    }

    public void setCloseId(Integer closeId) {
        this.closeId = closeId;
    }

    private Timestamp lastUpdate;

    ////@Basic
    ////@Column(name = "last_update")
    public Timestamp getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(Timestamp lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

    private Integer updateId;

    ////@Basic
    ////@Column(name = "update_id")
    public Integer getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    private String mmUnionid;

    ////@Basic
    ////@Column(name = "mm_unionid")
    public String getMmUnionid() {
        return mmUnionid;
    }

    public void setMmUnionid(String mmUnionid) {
        this.mmUnionid = mmUnionid;
    }

    ////@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        AccSecretEntity that = (AccSecretEntity) o;

        if (accsId != that.accsId) return false;
        if (createId != that.createId) return false;
        if (loginId != that.loginId) return false;
        if (birthday != null ? !birthday.equals(that.birthday) : that.birthday != null) return false;
        if (closeDate != null ? !closeDate.equals(that.closeDate) : that.closeDate != null) return false;
        if (closeId != null ? !closeId.equals(that.closeId) : that.closeId != null) return false;
        if (createDate != null ? !createDate.equals(that.createDate) : that.createDate != null) return false;
        if (email != null ? !email.equals(that.email) : that.email != null) return false;
        if (expireDate != null ? !expireDate.equals(that.expireDate) : that.expireDate != null) return false;
        if (fullname != null ? !fullname.equals(that.fullname) : that.fullname != null) return false;
        if (idCode != null ? !idCode.equals(that.idCode) : that.idCode != null) return false;
        if (idType != null ? !idType.equals(that.idType) : that.idType != null) return false;
        if (lastUpdate != null ? !lastUpdate.equals(that.lastUpdate) : that.lastUpdate != null) return false;
        if (micromsg != null ? !micromsg.equals(that.micromsg) : that.micromsg != null) return false;
        if (mmUnionid != null ? !mmUnionid.equals(that.mmUnionid) : that.mmUnionid != null) return false;
        if (mobile != null ? !mobile.equals(that.mobile) : that.mobile != null) return false;
        if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false;
        if (qq != null ? !qq.equals(that.qq) : that.qq != null) return false;
        if (sex != null ? !sex.equals(that.sex) : that.sex != null) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;
        if (updateId != null ? !updateId.equals(that.updateId) : that.updateId != null) return false;

        return true;
    }

    ////@Override
    public int hashCode() {
        int result = accsId;
        result = 31 * result + loginId;
        result = 31 * result + (fullname != null ? fullname.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (mobile != null ? mobile.hashCode() : 0);
        result = 31 * result + (email != null ? email.hashCode() : 0);
        result = 31 * result + (qq != null ? qq.hashCode() : 0);
        result = 31 * result + (micromsg != null ? micromsg.hashCode() : 0);
        result = 31 * result + (idType != null ? idType.hashCode() : 0);
        result = 31 * result + (idCode != null ? idCode.hashCode() : 0);
        result = 31 * result + (sex != null ? sex.hashCode() : 0);
        result = 31 * result + (birthday != null ? birthday.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
        result = 31 * result + createId;
        result = 31 * result + (expireDate != null ? expireDate.hashCode() : 0);
        result = 31 * result + (closeDate != null ? closeDate.hashCode() : 0);
        result = 31 * result + (closeId != null ? closeId.hashCode() : 0);
        result = 31 * result + (lastUpdate != null ? lastUpdate.hashCode() : 0);
        result = 31 * result + (updateId != null ? updateId.hashCode() : 0);
        result = 31 * result + (mmUnionid != null ? mmUnionid.hashCode() : 0);
        return result;
    }

    private LoginEntity loginEntity;

   ////@Transient
    public LoginEntity getLoginEntity() {
        return loginEntity;
    }

    public void setLoginEntity(LoginEntity loginEntity) {
        this.loginEntity = loginEntity;
    }
}
